/**
 * Perform the element default action.
 *
 * @param {JSEvent} event the event that triggered the action
 *
 * @properties={typeid:24,uuid:"74F622CC-2028-4104-BD86-EA4973F33ECF"}
 */
function iraDtl(event) {
	forms.recepciones_autoriza_dtl.controller.loadRecords(recep_cabecera_id)
	globals.formEnVentana('recepciones_autoriza_dtl','RECEP_DTL','Recepción a Autorizar')
}

/**
 * Callback method for when form is shown.
 *
 * @param {Boolean} [firstShow] form is shown first time after load
 * @param {JSEvent} [event] the event that triggered the action
 *
 * @properties={typeid:24,uuid:"A5C45FFE-978C-4028-88D1-7AA0E145EB9C"}
 * @AllowToRunInFind
 */
function onShow(firstShow, event) {
	controller.find()
	recep_estado = 2
	controller.search()
	
	databaseManager.setAutoSave(false)
}

/**
 * Handle hide window.
 *
 * @param {JSEvent} event the event that triggered the action
 *
 * @returns {Boolean}
 *
 * @properties={typeid:24,uuid:"D666E870-89F1-45D7-9222-B6E081B2A718"}
 */
function onHide(event) {
	databaseManager.setAutoSave(true)
	return true
}
